package dimensional.one;

public class Student {
    private int index;
    private float score;
    private char grade;

    public Student(int index, float score) {
        this.index = index;
        this.score = score;

    }

    public char getGrade() {
        return grade;
    }

    public void setGrade(char grade) {
        this.grade = grade;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public static void printScore(Student student, char grade) {
        System.out.println("student " + student.getIndex() + "'s score is " + student.getScore()
                + " grade is " + student.getGrade() + ".");
    }

    @Override
    public String toString() {
        return "dimensional.one.Student{" +
                "index=" + index +
                ", score=" + score +
                ", grade=" + grade +
                '}';
    }
}


